package cn.laowen.user.domain;

import java.math.BigDecimal;
import java.util.Date;
import cn.laowen.basic.domain.BasicDomain;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 * <p>
 * 
 * </p>
 *
 * @author laowen
 * @since 2022-06-16
 */

@Data
public class User extends BasicDomain{

    private static final long serialVersionUID = 1L;

    private String username;
    private String email;
    private String phone;
    /**
     * 盐值
     */
    private String salt;
    /**
     * 密码，md5加密加盐
     */
    private String password;
    /**
     * 已注册 0已激活 -1禁用
     */
    private Integer state = 0;
    private Integer age;

    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date createtime = new Date();
    private String headImg;
    private Long logininfoId;



}
